<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2016/9/9
 * Time: 15:35
 */
if (!defined('ACCESS')) {
    exit('Access denied.');
}

class Tongji extends DBBase
{

    private static $table_name = 'tong_ji';
    // 查询字段
    private static $columns = array(
        'id',
        'tongji');

    public static function getTableName()
    {
        return self::$table_name;
    }


    public static function getTongji($id)
    {
        $where = array("id" => $id);
        $db = self::__instance();

        $tongji = $db->get(self::getTableName(), self::$columns, $where);
        if ($tongji) {
            return $tongji;
        }
        return array();
    }

}